/**
 * 退出登录
 * @returns
 */
function loginout(){
	$.ajax({
		headers : {
			token : token
		},
		url : '/loginout',
		data : {},
		type : 'post',
		success : function(data){
			if(data.success){
				localStorage.removeItem('loginName');
				localStorage.removeItem('access_token');
				window.location.href='login.html';
			}else if(data.code == 1006){
				window.location.href='login.html';
			}else{
				art.dialog({
					icon : 'error',
					time : 2,
					content : data.msg
				});
			}
		}
	});
}